package com.peanut.baby.mvp.bbs.detail;

import com.peanut.baby.model.BBSComment;
import com.peanut.baby.model.BBSMoment;
import com.peanut.baby.model.MomentRel;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/8/21.
 */

public interface BBSMomentDetailContract {
    interface View extends BaseView{
        void onDetailGet(BBSMoment moment);
        void onCommentsGet(List<BBSComment> comments);
        void onGetCommentsFailed(String reason);
        void onGetDetailFailed(String reason);
        void onSendCommentSuccess(BBSComment comment);
        void onSendCommentFailed(String reason);
        void onSharePointSuccess(String tips);
        void onPostRelGet(boolean success, MomentRel rel, String failReason);
    }

    interface Presenter extends BasePresenter{
        void getMomentDetail(String id);
        void getComments(int pageNo, int pageSize, String momentId);
        void sendComment(String momentId, int type, String title, String content);
        void sharePoint(String momentId);
        void getPostRel(String id);
    }
}
